moved all animations to own function
Cleaned up functions from old code