Detect winner and may reset game