refactored code to use a game mananger class and added pause and quitting