Added code for animating the sprites, commented out so use if needed.