I wanted to make something like in TRPGs, you move and attack in a single turn, and then enemies move & attack.
So I modified GameEnergyBased.lua to make entities recover energy only every 10 game turns, each time recovering 1000 energy. And modified enoughEnergy() and useEnergy() to let actors acts before energy goes down to zero; also made move to cost 300 energy, and attack cost 600 energy.
It worked as expected, mostly. The problem is at player running: Say I have 100 energy left, I can run as normal; but if I have 400 or more energy, I will stop running after 1 step, and then get locked there, still "running", but can't continue moving. Why?

Any comment will be appreciated, and also thanks for your attention
