What I changed is described in the Sprite2 and the sprite5 with comments. Basically, I just add a collision on the horizontal axe.