Added pausing to the game during menus.