private void updateRunning(List <TouchEvent> touchEvents, float deltaTime) { foreach (var touchEvent in touchEvents) { //Handles new clicks that the user makes: if (touchEvent.type == TouchEvent.TOUCH_DOWN) { handleTouchDown(touchEvent); } //Then handles when user removes a finger from the screen if (touchEvent.type == TouchEvent.TOUCH_UP) { handleTouchUp(touchEvent); } } updateRobot(deltaTime); updateTiles(); hb.Update(deltaTime); bg.Update(deltaTime); animate(); }