API method to leave game.