Got it working! Leighton selects a random orb and moves it one space in a random direction, and ensures that the randomly selected move is legal (possible).