fix win condition error