How do you complete the sand castle puzzle?
You'll need an item sometime dropped after shape fights. After that, discard it from your inventory and drag & drop it onto the sandcastle.