Refactored recursive call in minimax