Got a greedy chase algorithm working.
Fixed minor glitch, but not sure what exactly caused it, look into it later.