Added boundary and neighbour information in obstacle update function.