add init online game
restructure