internal static void AddObstacle() { int middle = FieldData.GameFieldHeight / 2; int bottom = FieldData.GameFieldHeight - 2; int lastColumn = FieldData.GameFieldWidth - 2; int x = RandomNumber.InRange(1, lastColumn); int y = RandomNumber.InRange(middle, bottom); Field.Cells[y][x] = obstacle; }