menuItem.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
try {
if (gameControllerServer == null) {
gameControllerServer = new NetworkGameControllerServer();
gameControllerServer.setEventsListener(SwingServer.this);
}
} catch (IOException e1) {
e1.printStackTrace();
}