build state work in game