These are my solutions to the Code Combat Gridmancer level, accessible at http://codecombat.com/play/level/gridmancer#