Cleaned up the gameLoop a little.