Updated state scripts.

Create base classes of character's behaviour and each states.
Not yet implemented online mode. (only local)