fix win condition