Find where the ball starts moving. There is going to be an ontimer method that handles moving the ball to the next space, before moving it check if the space is valid or has users. Stop the ball if necessary, turn the ball back and have it go back a space, do whatever you want