implemented Minimax algorithm

Not finished yet.  Needs some testing, precondition and error handling
and some work in the terminal test function