It took me some time to get what the loop does, but once I did it was a cool little puzzle game. For those playing in the browser, rotate with q/e - it will reset the position.