Ball and Plank Game in Processing