extract functions for getting main diagonal
and second diagonal
added function to check non-eliminated chars for single sequence