Bugs fixed

Winning doesn't work right