private void move(){
		if (!board.isDone) {
			if (turn % 2 == 0) {
				if (board.lastXMoved != null) {
					int[] prevPos = board.lastXMoved.getPos();
					buttonArray[prevPos[0]][prevPos[1]]
							.setBackground(Color.WHITE);
				}
				board.move_B();
			} else {
				if (board.lastOMoved != null) {
					int[] prevPos = board.lastOMoved.getPos();
					buttonArray[prevPos[0]][prevPos[1]]
							.setBackground(Color.WHITE);
				}
				board.placePiece(board.move(), O);
			}
			int[] pos = board.lastSpaceMoved.getPos();
			JButton button = buttonArray[pos[0]][pos[1]];
			button.setText(turn % 2 == 0 ? X.toString() : O.toString());
			button.setForeground(turn % 2 == 0 ? new Color(0xF47F24)
					: new Color(0x003C7D));
			button.setBackground(new Color(0xDCDCDC));
			expand();
			board.setDone();
			if (board.isDone)
				endGame();
			followAI();
			turn++;
		}
	}