private boolean canEat(Color c) {
        // returns whether or not p's color is the color J*Man can capture
        return (getColor() == Color.YELLOW && c == Color.RED)
            || (getColor() == Color.RED && c == Color.GREEN)
            || (getColor() == Color.GREEN && c == Color.YELLOW);
        
    }