making environment graph updated

earlier transitions were only to 4-neighbourhood. Now it is a parameter.
So number can vary. Support for same added to make_graph