added animation functions to sprites
updated