finished implementation of anim method in sprite