Added sword attack animations for player

Improved animation code to make it more flexible for various animation types.
Going to later implement attack using these sword attack animations.