Setup the game loop and window display functionality. Added an FPS and UPS counte.