public static boolean manhattan(int x, int y, int nextStation) {
        switch (nextStation) {
            case 1:
                return (Math.abs(x - x1) + Math.abs(y - y1) > s1 - steps);
            case 2:
                return (Math.abs(x - x1) + Math.abs(y - y1) > s2 - steps);
            case 3:
                return (Math.abs(x - x1) + Math.abs(y - y1) > s3 - steps);
            default:
                return (Math.abs(x - x1) + Math.abs(y - y1) > s4 - steps);
        }
    }