Modified game loop so there is a constant game speed with variable/maximum fps.