private static void MoveMiner(int newRow, int newCol, List <List <char> > field, Miner miner) { field[miner.Row][miner.Col] = 'W'; if (newRow >= 0 && newCol >= 0 && newRow < field.Count && newCol < field[newRow].Count) { if (field[newRow][newCol] == 'e') { miner.IsAlive = false; miner.Row = newRow; miner.Col = newCol; } else if (field[newRow][newCol] == 'c') { field[newRow][newCol] = '*'; } miner.Row = newRow; miner.Col = newCol; } }