How about a pair of methods: (left & right) that given a square, check if the square in their direction is good and returns the good square number or -1 if its not good.