added the ability to press P to pause the game