public void Select(IBoard board, int col, int row) { DeSelect(board); var iteration = 1; board[col, row].IsSelected = true; board[col, row].IsMainSelection = true; if (board.CanGoAllDirections(col, row, iteration)) { board[col, row - iteration].IsSelected = true; board[col, row + iteration].IsSelected = true; board[col - iteration, row].IsSelected = true; board[col + iteration, row].IsSelected = true; } }