Just try implementing some debug codes ( print("Test 1"); print("Test 2"); ) following your code, so the console will say you where the code stops and then you can make an idea yourself about what's wrong in your code.
Dude do you know something different without debug just all time say try debug. This shit need use if me code doesn't work or something else, bat as you can see i told me code work perfect just need clear animation.