Fixed Bug

Did not take account to if there were multiple paths to take