Implemented onSaveInstanceState for StartMenu.java.