added pause menu, game over screen, and generalized game state manipulation