first attempt at minmax recursive alg
changed method to return the count
ai somewhat works