now it quits when you win, and I refactored the choosing