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