_frame.registerConnectToClientEvent(this);
_frame.registerSendMsgToClientEvent(this);
// connection to server
_serverConnection = new ServerConnection();
_serverConnection.registerSettingsFilledEvent(this);
_serverConnection.registerReceiveOpenMsgEvent(this);
_serverConnection.registerServerConnectionEvent(this);
_networkThread = new Thread(_serverConnection);