Correctly checks if the player and obstacles are on the same lane