public boolean isLiquid(float x, float y)
        {
        try
        {
            if (!inBounds(x,y)) return false;
            return (ground.cellData[(int)x][(int)y]==OIL||ground.cellData[(int)x][(int)y]==ETHER||ground.cellData[(int)x][(int)y]==WATER||ground.cellData[(int)x][(int)y]==LAVA);
        }
        catch (ArrayIndexOutOfBoundsException e)
        {
            return false;
        }
    }