Added tile animation.

Hey, here's the code. I haven't created a pull request before, so let me know if I need to delete and redo something.