cleaned up interface, more or less public ready.  next is alpha beta pruning.