-Reorganized some code in MainClass and made the frame show the FPS