add gamestate to the detla callback