Working minimax recursion with debugging print statements