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