private void handleJoinCommand(String[] split) throws IOException {
        if (!joined) {
            try {
                String password;
                String name;
                if (split.length == TWO) {
                    name = split[1];
                    password = "";
                } else if (split.length == THREE) {
                    name = split[1];
                    password = split[2];
                } else {
                    LOG.warn("Usage: /join <Playername> [password]");
                    return;
                }
                connectTo(name, password, "localhost");
            } catch (ConnectionFailure e) {
                LOG.fatal("Connection to host not possible!");
                pfactory.setError();
            } catch (ClassNotFoundException e) {
                LOG.fatal("Incorrect Client and Server versions!");
            }
        } else {
            UI.warn("You are currently in a running game!");
        }
    }