Added game time, fixed time step loop and some minor changes.