added location.reload to update page after user's win or lose.