Leaving the game functions added