public void play() throws IOException {
        String response;

        if (isMultiplayer) {
            while (true) {

                response = in.readLine();

                if (response.startsWith("LEGAL_MOVE")) {
                    currentButton.setText(team);
                } else if (response.startsWith("OPPONENT_MOVED")) {
                    setOpponentsMove(Integer.parseInt(response.split(" ")[1]));
                } else if (response.startsWith("ENDING")) {
                    String ending = response.split(" ")[1];
                    if ("WON".equals(ending)) {
                        endOfGame("You win!!");
                    } else if ("LOST".equals(ending)) {
                        endOfGame("Sorry you lose.");
                    } else if ("DRAW".equals(ending)) {
                        endOfGame("Cat's game... it's a draw!");
                    }
                } else if (response.startsWith("MESSAGE")) {

                }
            }
        } else {


        }
    }