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