Make the shape out of invisible sprites, and set them up in the design that you want.
Give each one an index number eg: 1 2 3 4 5 etc
If they move their finger over the invisible design in the order that the sprites are setup, then they match it.
if they go from 1 to 3 to 7, then they have messed up.
like invisible "connect the dots"