better entering and leaving a game