added game win condition