Moved animation ticks outside of loop.
To ensure consistancy with animation timing, despite the number of tiles to be examined, the animation timers were moved outside of the loop.