public void actionPerformed (ActionEvent event) {
            char turn=game.getTurn();

                       String nextTurn = "Black" ;
                       if(turn == 'W')
                           nextTurn = "Black";
                       if(turn == 'B')
                           nextTurn = "White";

                       if (turn==' ')
                           return;

                       if (!game.isBlank(num)) {
                           md.append("\n\nThat square is already occupied!");
                           return;
                       }

		       // makeMove returns true if move is legal, false if move is illegal
		       if (!game.makeMove(num)) {
                               md.append("\nCannot place tile there, it would be surrounded\n");
			       return;
		       }
		       
                       game.changeTurn();
           //	    char winner=game.move(num);
           //	    game.move2(num);
           //	    game.changeTurn();
                       JButton jb = buttons[num];
                       jb.setFont(new Font("Arial",Font.BOLD,25));
//	    jb.setText(Character.toString(turn)); // this is how we convert char to String
	    for(int i=1;i<362;i++){
		if(game.charAt(i) == 'W'){ //if element in Array list is W, set background color of JButton to WHITE
			buttons[i].setBackground(Color.WHITE);
			buttons[i].setForeground(Color.WHITE); // set font color of JButton to Black for visibility
		}
		else if(game.charAt(i) == 'B'){ //if element in ArrayList is B, set background color of JButton to BLACK
			buttons[i].setBackground(Color.BLACK);
			buttons[i].setForeground(Color.BLACK); // set font color of JButton to White for visibility
		}
		else if(game.charAt(i) == ' '){ //if ' ' element in Arraylist, set background color back to tan.
		    Color tan = new Color(210,180,140);
		    buttons[i].setBackground(tan);
		    buttons[i].setForeground(tan);
		}
		
	    }

	    //prints current score of game and whos turn it is 
	    md.append("\n\nWhite Score: " + game.getWScore() + "\nBlack Score: " + game.getBScore());
	    md.append("\n" + nextTurn +"s turn.");
		
	    // check for a winner
/*	    if (winner=='D')
		md.append("\nPhooey.  It's a draw.\n");
	    else if (winner!=' ')
	    md.append("\n"+ winner + " wins!\n");
*/
	}