add a debug function and started moving start+update into the game func