Fixing some timer and gameLoop bugs.