Beginning minimax implementation