private static void PrintOutOfGamePiecesByColor(ChessMatch chessMatch, Color color) { Console.Write("Out pieces: "); Console.ForegroundColor = (ConsoleColor)color; string value = "["; foreach (var piece in chessMatch.GetOutOfGamePieces(color)) { value += (piece + " "); } value += "]"; Console.WriteLine(value); Console.ForegroundColor = _defaultConsoleForegroundColor; }