public void singlePlayerMove(Object source, int indexPosition) {
        boolean legalMove = false;
        legalMove = singlePlayerGame.selectSquare(indexPosition);

        if (legalMove) {

            // Draw board moves on board
            setOpponentsMove(singlePlayerGame.getComputersMostRecentMove());
            ((AbstractButton) source).setText(team);

            String status = singlePlayerGame.checkStatus();

            // TODO make enum
            try {
                if ("WON".equals(status)) {
                    endOfGame("You win!!");
                } else if ("LOSE".equals(status)) {
                    endOfGame("Sorry you lose.");
                } else if ("DRAW".equals(status)) {
                    endOfGame("Cat's game... it's a draw!");
                }
            } catch (IOException e) {
                e.printStackTrace();
            }
        }


    }