fixed win condition bug