Fixed bug so animated tiles will respawn if player goes out of bounds.

- Also did some code cleanup