Added WorldState class and some basic terminal which uses this.