Added slight validation to the fps to quit the game from crashing