private static void whichTrack(String track, String dir, int[] startingPoint, LinkedList<int[]> locations) {
        switch (track) {
            case "strR":
            case "strL":
            case "statR":
            case "statL":
                straightTrack(dir, startingPoint, locations);
                break;
            case "turnR":
                curveRight(dir, startingPoint, locations);
                break;
        }
    }