finish whole game process.