fixed win condition hang