fixed error in map_optimizer that madd all non-free space into walls