public boolean isSolid(double x, double y)
    {
        try
        {
            if (!inBounds(x,y)) return true;
            return (ground.cellData[(int)x][(int)y]==GROUND||ground.cellData[(int)x][(int)y]==TREE||ground.cellData[(int)x][(int)y]==SAND||ground.cellData[(int)x][(int)y]==STONE||ground.cellData[(int)x][(int)y]==ICE||ground.cellData[(int)x][(int)y]==CRYSTAL);
        }
        catch (ArrayIndexOutOfBoundsException e)
        {
            return false;
        }
    }