public void endGame(){
		String stillWalking = (s.whoseTurn() == "red")?"blue" : "red";
		MyList blankPos = s.ownees(null);

		s.fill(blankPos,stillWalking,board);
		int redScore =s.getnRed() + ((stillWalking == "red")?s.getnEmpty():0);
		int blueScore = s.getnBlue() + ((stillWalking == "blue")?s.getnEmpty():0);
		board.setScore(redScore,blueScore);
		board.setPlayer(s.whoseTurn().equals("red") ? 1 : 2 );
		String winner = redScore > blueScore ? "Red "+Hexxagon.getPlayerType(Hexxagon.p1Type)+" is the winner!" : (blueScore==redScore)? "Draw!" : "Blue "+Hexxagon.getPlayerType(Hexxagon.p2Type)+" is the winner!";

		System.err.println(s.whoseTurn()
				+ " did not produce a legal move. Ending game.");
		GameLoopState.effector.openEffect("charge.wav");
		String[] choices = { "Restart Game","Return to Title" };
		
		int response = JOptionPane.showOptionDialog(null // Center in
															// window.
				, winner // Message
				, "Game Ended!" // Title in titlebar
				, JOptionPane.YES_NO_OPTION // Option type
				, JOptionPane.PLAIN_MESSAGE // messageType
				, null // Icon (none)
				, choices // Button text as above.
				, "None of your business" // Default button's label
		);
		if (response == 0){
			Hexxagon.resetMatch();
		}
		else if (response==1){
			Hexxagon.restartApplication();
		}
	}