void GeneateStones()
{
var numStones = 0;
var maxTries = 0;
//Find some starting points, within the defines bounds (maxTries there to make sure no infinite loop.
while (numStones < NumberOfClosters && maxTries++ < 500 && _lowerBoundaryY < _upperBoundaryY)
{
var x = Random.Range(0, _pointsInPlane.Count);
var y = Random.Range(0, _pointsInPlane[x].Count);
// Not a valid candidate
if (!(_pointsInPlane[x][y].y < _upperBoundaryY) || !(_pointsInPlane[x][y].y > _lowerBoundaryY) || _map[x, y] != 0)
continue;
_map[x, y] = 2;
numStones++;
}
}