modified recursive algo and changed maze matrix