black lines : a two way path  in the appropriate direction
colored lines : oneway into the similarly colored square

 
 
If you would like to get a script for the MAZE click here