add states, modify game.ts