Made functioning pause menu

Also moved the pausemenu class