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