Fixing bug where trying to leave board freezes the game.