added timer for game update, also set flags for buttons