Hello, I tried many of variants, but no one did pass the verification. I have "more mathes" than needed, but why they don`t needed? I did try do this task with 8 directions, but lost structer and return to 4 directions(beacuse we go from left top corner string by string to rigth bottom corner). My general problem, i can't understand why i shouldn't show "aa" pairs like below: aa - (4, 5) - (4, 6) ---- stay after aa - (4, 6) - (4, 5) ---- stay after aa - (5, 5) - (4, 6) ---- stay after aa - (4, 6) - (5, 5) ---- stay after aa - (4, 6) - (5, 6) ---- stay after aa - (4, 6) - (4, 7) ---- stay after aa - (4, 6) - (5, 7) ---- stay after aa - (5, 6) - (4, 6) ---- stay after aa - (4, 7) - (4, 6) ---- stay after aa - (5, 7) - (4, 6) ---- stay after