Hit and Freeze, glitch or bug?[SOLVED]

Hello and welcome to codecombat discourse! This is a cozy forum where you can share ideas, share fan art, get assistance for code, etc! Before you proceed, we hope that you review this topic, which shows all essentials of this board! Thanks!

Please format your code correctly. Press the < / > button, and paste your code in there.