work flow for the game