public static void restartApplication(){
		board.dispose();
		Arbiter.restart();
			hexxThread = new Thread(new Runnable() {
				@Override
				
				public void run() {
					state = new State();
					ui = new HaxagonUI();
					board = new Board(5, state, ui);
					synchronized (state) {
						try {
							state.wait();
						} catch (InterruptedException e) {
						}
					}
					board.gotoMain();
					gameLoop = new GameLoopState();
					System.out.println("P1="+ui.getP1()+" P2="+ui.getP2());
					runArbi();
				}
			});
			hexxThread.start();
		
	}