Fixed pause menu.
Fixed code for good handling of pause.