private boolean boardDimensionsWrong() throws IOException {
        Scanner scanner = new Scanner(filePath);
        int firstRowLength = scanner.nextLine().length();
        while (scanner.hasNextLine()) {
            if (!(firstRowLength == scanner.nextLine().length())) {
                scanner.close();
                return true;
            }
        }
        scanner.close();
        return false;
    }