Fixed checking of winner