public void updateFromBoard(Board board){
		setTitle("Connect Four" + ((playerRed)?"(Red Move)": "(Blue Move)"));
		for(int i =0;i<ConnectFour.COLUMNS;i++){
			for(int j=0;j<ConnectFour.ROWS;j++){
				buttons[i][j].setText(board.getBoardArray()[i][j]);
				if(board.getBoardArray()[i][j]!=null){
					switch(board.getBoardArray()[i][j]){
					case "R":
						((Square) buttons[i][j]).setColor(new Color(0xFF0000));
						break;
					case "B":
						((Square) buttons[i][j]).setColor(new Color(0x0000FF));
					}
				}
			}
		}
		if(this.board.checkWin("R")){
			JOptionPane.showMessageDialog(this, "Red wins");
			System.out.println("Red wins");
			dispose();
		}
		if(this.board.checkWin("B")){
			System.out.println("Blue wins");
			JOptionPane.showMessageDialog(this, "Blue wins");
			dispose();
		}
		//System.out.println(board.countRows(2, "R"));
	}