Added a method to compute the obstacles for a complex maze