My submission to CodeCombat's Criss-Cross tournament