naive maze generation functional
finally sensible generation! (could be made faster using hashmaps, but this should be sufficient)