fixed yet another bug with winning