public User(String nick, InetAddress address, int port) throws GameException, IOException {
        if (nick == null || nick.equals("")) throw new GameException(4);
        if (address == null) throw new GameException(5);
        if (port > 65535 || port < 1024) throw new GameException(6);
        this.nick = nick;
        this.address = address;
        this.port = port;
        gameID = -1;
        state = State.FREE;

    }