main and game is splited