shuffle the cost of spirit grammars