Added pause functionality. Finished end game loop.