@Override
    public WebSocketResponse leaveServer(GameClient gameClient) {
        //System.out.println("leave Server");

        int clientId = gameClient.getIdentifyer();
        
        PlayerLeftMessage message = gameManager.LeaveServer(clientId);
        
        RisikoServerResponse response = new RisikoServerResponse();
        response.setState(1);
        response.setMessage( message.getClass().getSimpleName() );
        response.addTargetClientList( message.PlayerIDsToUpdate );

        List<MapChange> changedMaps = message.Map;
        if(changedMaps != null){
            for(int i = 0; i< changedMaps.size(); i++) {
                response.addChangedObject( changedMaps.get(i) );
            }
        }

        if(message.Player != null) { //check player (neccessary if player leave lobby before)
            response.addChangedObject(message.Player);
        }

        if (message.Game != null)
            response.addChangedObject( message.Game );

        return response;
    }