private boolean parseCommand (String s) {
            String[] split = s.split(" ");
            if (split[0].equals("MOVE")) { 
                if(c != null) {
                    try { 
                    return ServerAPI.move(Integer.parseInt(split[1]), c);
                    } catch (Exception e) {}
                }
            } else if (split[0].equals("LOGIN")) {
                if(c == null) {
                    c = ServerAPI.login(split[1], split[2]);
                    if (c != null) {
                        return true;
                    } else {
                        return false;
                    }
                 } else return false;
            } else if (split[0].equals("LOGOUT")) {
            } else if (split[0].equals("FIRE")) {
            } else {
                return false;
            }
            return true;
        }