Added diagonals check