function added to limit FPS (the game kinda relies on 60 FPS to be smooth).