Need to modify the game loop so that the game logic and drawing runs at the same speed on every platform.