Fixing Deki's bullshit path finder which works only when you don't click over the river