finish the game in html page