add samegame code