This is a starter for a Tomb of the Mask like game - would need to add hazards, and pre-planned wall and coin locations instead of random. Because this is a starter and randomly generated layout, you may not be able to get all the coins (or even any of them if you are unlucky!)
credits of a sort to Tomb of the Mask for the inspiration