public int checkPuzzleAnswer(int radius, int height, int volumeLow, int volumeHigh) {

        if (radius < 1 || radius > 8 || height < 1 || height > 1) {
            return -1;
        }

        int volume = (int) Math.PI * ((int) Math.pow(radius, 2) * height);

        if (volume >= volumeLow && volume <= volumeHigh) {
            System.out.println("Correct! You got the right value");
            return 0;

        } else if (volume < volumeLow) {
            System.out.println("Volume too low. Try again.");

            return 1;
        } else {
            System.out.println(" Volume too high. Try again.");
            return 1;

        }
    }