Added extra check on the minimax output to check if the correct move is
selected