checkOnDiagonal
bug fixes