Is it possible that an object keeps going in the same direction it was going before?
I'm working on a pacman game and the ghost are moving with Greenfoot.getRandomNumber when there are 3 or more paths to go, but I can't use this method when there are just 2 possibilities like forward and backward, because it would keep moving one step forward and one step backward.