made some changes to MiniMax