fixed route finding algorithm, still fooled by spirals
attempts to fix spirals, loops are now taken out of grids, I think