Cleaned up loss condition

Break is still required, because without it, "you lose" is printed
multiple times. My guess is that this is means Qt.quit() is
launched in another thread, and doesn't complete instantly (thus
the loop keeps going).