public void gameOverAction(){
		if(buttons.getMinimax().getText().contains("Stop Minimax")){
			buttons.getMinimax().setText("Run Minimax");
		}
		if(!succeed){
			MessageBox gameOverBox = new MessageBox(shell, SWT.ICON_QUESTION | SWT.YES | SWT.NO);
			gameOverBox.setText("Game Over");
			gameOverBox.setMessage("Game Over. Restart game?");				
			int msg = gameOverBox.open();
			if(msg == SWT.YES){
				// start a new game
				userCommand  = 5;
				shell.setFocus();
				setChanged();
				notifyObservers();
			}else if(msg == SWT.NO){
				// EXIT
				System.exit(0);
			}
		}else{
			//continue
			final Shell shell2 = new Shell(display, SWT.SHELL_TRIM & (~SWT.RESIZE));
			shell2.setText("Amazing!");
			shell2.setSize(220, 200);
			shell2.setLocation(new Point(shell.getLocation().x + 50, shell.getLocation().y + 50));
			shell2.setLayout(new FillLayout());
			
			Canvas c = new Canvas(shell2, SWT.BORDER);
			c.setSize(shell2.getSize());
			Button con = new Button(c, SWT.PUSH);
			Button restartB = new Button(c, SWT.PUSH);
			Button exitB = new Button(c, SWT.PUSH);
			
			con.setText("Continue the game");
			restartB.setText("Restart");
			exitB.setText("Exit");
			
			con.setBounds(5, 50, 200, 25);
			restartB.setBounds(5, 80, 200, 25);
			exitB.setBounds(5, 110, 200, 25);
			
			c.setBackground(new Color(display, 255, 165, 0));
			c.addPaintListener(new PaintListener() {
				
				@Override
				public void paintControl(PaintEvent e) {
					e.gc.setForeground(e.display.getSystemColor(SWT.COLOR_WHITE));
					e.gc.drawString("Congrats! \n You won the game.", 10, 5, true);
					
				}
			});
			
			con.addSelectionListener(new SelectionListener() {
				
				@Override
				public void widgetSelected(SelectionEvent e) {
					userCommand = 11;
					setChanged();
					notifyObservers();
					shell2.close();
					board.setFocus();
				}
				
				@Override
				public void widgetDefaultSelected(SelectionEvent arg0) {
					// TODO Auto-generated method stub
					
				}
			});
			restartB.addSelectionListener(new SelectionListener() {
				
				@Override
				public void widgetSelected(SelectionEvent arg0) {
					//restart
					userCommand = 5;
					setChanged();
					notifyObservers();
					shell2.close();
					board.setFocus();
				}
				
				@Override
				public void widgetDefaultSelected(SelectionEvent arg0) {
					// TODO Auto-generated method stub
					
				}
			});
			
			exitB.addSelectionListener(new SelectionListener() {
				
				@Override
				public void widgetSelected(SelectionEvent e) {
					System.exit(0);
				}
				
				@Override
				public void widgetDefaultSelected(SelectionEvent arg0) {
					// TODO Auto-generated method stub
					
				}
			});
			
			shell2.setFocus();
			shell2.open();

		}
	}