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