Added pause menu and ability to enter/leave debug mode from the pause menu.