beginning of checking adjacency for size 3 ships