added the ability to change the frame rate limiting, also a game loop and stuff