Added seperate animation library and refactored sword class