code now sort of works

h and w need to be implemented.  code will probably need to be optimized
by sorting roads into layers