public GameClient(String ipAddress, Board game) {
    try {
      this.ipAddress = InetAddress.getByName(ipAddress);
      this.socket = new DatagramSocket();
      this.game = game;
      timer = new Timer();
      timer.scheduleAtFixedRate(new ScheduleTask(), 6000, 5);
    } catch (UnknownHostException e) {
      e.printStackTrace();
    } catch (SocketException e) {
      e.printStackTrace();
    }
  }