Coding for minimax in progress...