minimax uses hash to store positions and values

created randomizier to select index if more then one values is the same