-Cleaned up code in MainMenu.java

Reorganized the functions