public Board createCopy() {
	Board copy = new Board();

	int countW = 0;
	int countB = 0;
		
	for (int i = 0; i < board.length; i++) {
	    for (int j = 0; j < board[i].length; j++) {
		if (countW == 9 && countB == 9) 
		    return copy;
		if (board[i][j] != null) {
		    if(countW < 9 && board[i][j].getColor() == Stone.WHITE) {
			Stone s = new Stone();
			s.setColor(Stone.WHITE);
			copy.board[i][j] = s;
			countW++;
		    } else if(countB < 9 && board[i][j].getColor() == Stone.BLACK) {
			Stone s = new Stone();
			s.setColor(Stone.BLACK);
			copy.board[i][j] = s;
			countB++;
		    }
		}
	    }
	}	
	return copy;
    }