public Matrix <char> Draw(Matrix <char> canvas) { if (maze.IsActive()) { canvas = maze.Draw(canvas); } foreach (IDrawable item in items) { if (item.IsActive()) { canvas = item.Draw(canvas); } } foreach (IDrawable door in doors) { if (door.IsActive()) { canvas = door.Draw(canvas); } } if (player.IsActive()) { canvas = player.Draw(canvas); } return(canvas); }