added the ability to pause the game