Created AnimationFactory class for player animation creation.