Took me a bit to figure out what was going on but once I did I was able to beat it. The puzzle is pretty clever and well designed. Nice job!