expand getNeighbours and  and add getObstacles