Archer & Mage Logic Puzzle- HTML5