Animation now loops properly