Added a good game loop and time step