Added in pathfinding code from tutorial earlier.
Maps are now always winnable (still a possibility of an infinite loop if
the generator keeps making unwinnable maps, but that's unlikely)