Refactor code to avoid check whether player created in WebSocketConnection