Win-Lose done-ish

Added conditions that Quit the application if you win or lose.
Merged Win-Lose