fixed leaving and joining of games on the server side