Fix a bug that judge conflict diagonally incorrectly