Don't use a static boolean to store the previous moving state of a sprite.

The fact of using a static variable was inducing unwanted interaction between sprites animations.
This was resetting idle animation of certain other sprites when the player sprite was moving.

Fixes #317