making game win condition work