Refactored minimax goes one level deep