The idea is very interesting and the game is very atmospheric (though a bit too dark).
I got stuck on the third level, this is my configuration and though I don't see anything wrong it didn't work: maybe you coded the exact sequence? That is for example, the second and third gear from the left, though identical, are considered different by the game?
I would also move the gears a little towards the camera when you drag them, so that they don't collide with the placed gear and can be freely moved to their spot.