pause menu has a weird reference error, but it works