Fixed bug with winning.