completed win logic