Decreased code for tile animation.