part2 state0 = if (takeR (Q.length targetSeq) recipes) == targetSeq
then (Q.length recipes) - (Q.length targetSeq)
else (Q.length recipes) - (Q.length targetSeq) - 1
part2 state0 = if (takeR (Q.length targetSeq) recipes) == targetSeq
then (Q.length recipes) - (Q.length targetSeq)
else (Q.length recipes) - (Q.length targetSeq) - 1