Replaced game loop with a better one

Game runs now at constant 60 fps. Improved performance