Solution to level 67 in Untrusted: http://alex.nisnevich.com/untrusted/