Fix bug where having the mouse cursor outside the dungeon would cause the game to not render properly