Writing a system to apply the Minimax algorithm to an arbitrary two player board game