MAXINIM:
Solution is really easy (as you may've assumed). The only thing you
have to do is to maintain even number of piles containing the largest 
number
of macthes. Thus if your opponent has a turn -> odd number of 'largest
piles' are
left (i.e. you have also a turn). Easy it is.
