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