First go on the minimax algorithm