StateBasedGame example