Add touch and motion events. Move prediction creation into makePrediction method to dry up code.