maze solver prettified, need to work with maze gen