public Move bestMove(int depth, int col){

		Move bestMove = null;
		float bestW = (float) -1E9;
		float bestB = (float) 1E9;

		if (col == 1){
			for (int i = 0; i < tree[depth].getSize(); i++){
				if (tree[depth].getMove(i).getEvalScore() >= bestW){
					bestW = tree[depth].getMove(i).getEvalScore();
					bestMove = tree[depth].getMove(i);
				}
			}
			return bestMove;
		}

		else {
			for (int i = 0; i < tree[depth].getSize(); i++){
				if (tree[depth].getMove(i).getEvalScore() <= bestB){
					bestB = tree[depth].getMove(i).getEvalScore();
					bestMove = tree[depth].getMove(i);
				}
			}
			return bestMove;
		}
	}