running sprite with code