You know xy. If they are tiled(all the same dimension), then you know where the others are.
D would be x-1, y-1
O would be x+1 y+1
In tiles.
You can the pick by xy... if you are not using sub pixels, or "pick closest" if you are.
Then filter by distance()... if they are tiles.