refactor code and comments added
pause and exit menu for game activity and dialog to conform exit and back button for settings