 	}
 	
 	override func didEnter(from previousState: GKState?) {
-		let imageName = GKRandomSource().arrayByShufflingObjects(in: kokoActionImages).first as! String
+		let imageName = GKRandomSource().arrayByShufflingObjects(in: actionImages[characterNode.name!]!).first as! String
 		characterNode.texture = SKTexture(imageNamed: imageName)
 	}
 }

let randomX = GKRandomDistribution(randomSource: GKARC4RandomSource(), lowestValue: -250, highestValue: 250)
let randomY = GKRandomDistribution(randomSource: GKARC4RandomSource(), lowestValue: -350, highestValue: -100)

let kokoActionImages = ["asisu", "hai", "koko_def", "koko_meshi", "koko_sensei", "koko_uta", "koko_zinb", "koko_zinbabue2", "kokomi_4", "kokotto", "naki_B1", "naki_B2", "orya", "ra_men", "sengen", "tettere_", "zinbabues"]


class CharacterState: GKState {

	
	override func update(deltaTime seconds: TimeInterval) {
		if actions.isEmpty {
			actions = GKRandomSource().arrayByShufflingObjects(in: actionImages[characterNode.name!]!) as! [String]
		}
		characterNode.texture = SKTexture(imageNamed: actions.popLast()!)
		characterNode.run(SKAction.sequence([
