Complete animation debugged and tested
Moved unit setup to its own function