added a pause menu. and added logic to have the pause menu on top of the game screen