add state map so that we can reuse wySkeleton for multiple wySkeletalSprite