Added looping and looping behavior the sprites.