Fixed a HUGE problem with win detection

That broke the whole damn program