Connecting adjacent points where (x^y)%3==2.