Implemented sprite animation