You use some grid system, calculate that brown rock position (in grid coordinates) then check what is there.