Added test to check for adjacent coordinates