Thanks for helping out plinkie.
But weirdly enough, the random movement doesn't function. I am not sure why. I tested it out about 8 times so far, and all it does is go right, than turns left when it reaches the end. And vice versa. And to be honest..,I am not sure why it doesn't.