public String getCurrentStateString() {
        switch (state) {
            case WAIT_LOGIN:
                return "LOGIN";
            case WAIT_PASSWORD:
                return "PASSWORD";
            case WAIT_PLAYING:
                return "PLAYING";
            case WAIT_SHIPCHOICE:
                return "SHIPCHOICE";
            case WAIT_SHIPNAME:
                return "SHIPNAME";
            case WAIT_DEAD:
                return "DEAD";
            case WAIT_HSOVERALL:
                return "HIGHSCORESOVERALL";
            case WAIT_HSCLASS:
                return "HIGHSCORESCLASS";
            case WAIT_SOCKETERROR:
                return "SOCKETERROR";
            default:
                return "** UNKNOWN";
        }
    }