fixed win condition hang (v2)