public boolean hasPit(int x, int y)
    {
        for (Point p:pits)
        {
            if (p.x == x && p.y == y)
            {
                return true;
            }
        }
        return false;
    }