Adding win and lose game functionality.
Adding a dialog box for win/lose cases.