private void AddRandomTile(int maxSize)
{
List<Point> selectedCells = Board.AvailableCells(maxSize, true);
Random random = new Random();
foreach (Point point in selectedCells)
{
int value = (random.NextDouble() < 0.9 ? 0 : 1);
Board.InsertTile(new Tile(point.X, point.Y, value));
}
}