fixed a problem in GameTime and tried to reimplement limitFPS