public static void drawFood(Graphics g, Food food, int dotSize) {
        if (food instanceof Apple) {
            drawApple(g, (Apple) food, dotSize);
        } else if (food instanceof Banana) {
            drawBanana(g, (Banana) food, dotSize);
        } else if (food instanceof PoisonApple) {
            drawPoisonApple(g, (PoisonApple) food, dotSize);
        } else if (food instanceof Bacon) {
            drawBacon(g, (Bacon) food, dotSize);
        } else if (food instanceof DietCoke) {
            drawDietCoke(g, (DietCoke) food, dotSize);
        } else if (food instanceof Candy) {
            drawCandy(g, (Candy) food, dotSize);
        } else if (food instanceof ShrinkPill) {
            drawShrinkPill(g, (ShrinkPill) food, dotSize);
        } else if (food instanceof Spinach) {
            drawSpinach(g, (Spinach) food, dotSize);
        } else if (food instanceof RatPoison) {
            drawRatPoison(g, (RatPoison) food, dotSize);
        }
    }