resolved minor bug in min-max algorithm. "isCheckPosition" is no base
case.