added win condition
qbs fixes