public static void sanityCheckIfInLegalMoveList(Position currentPos, String explicitMove, String filename) {
		ArrayList<String> moveList = LegalMoveFetcher.getLegalMoveListPlusCheckDetails(currentPos);
		
		String fromMyProg;
		String fromFile;
		for(int i=0; i<moveList.size(); i++) {
			//For Carlsen: (he has no # signs)  (moveList.get(i).contains("#") && moveList.get(i).contains(explicitMove.substring(0, explicitMove.length() - 1))) 
			
			if(moveList.get(i).equals(explicitMove)  ) {
				//good
				//System.out.println("Match found!");
				return;
				
				//Nielsen.pgn has no checkmate symbols.
			} else if(filename.equals("Nielsen.pgn") || filename.substring(filename.lastIndexOf('\\') + 1).equals("Carlsen 1423 games.pgn")) {
				if(moveList.get(i).replace('#', '+').equals(explicitMove)) {
					return;
				}
				
			//Tal gets check wrong too many times to be reliable:
			} else if(filename.equals("Tal.pgn")) {
				fromFile = explicitMove.replace("+", "").replace("#", "");
				fromMyProg = moveList.get(i).replace("+", "").replace("#", "");
				if(fromFile.equals(fromMyProg)) {
					return;
				}
			}
		}
		
		System.out.println("Filename: " + filename);
		System.out.println("ERROR: couldn't find move " + explicitMove);
		System.out.println("List of moves: ");
		for(int i=0; i<moveList.size(); i++) {
			System.out.println(moveList.get(i));
		}
		System.exit(1);
	}