游戏加入成败判断，以及重玩。(Added winning check, and replay function.)