Starting work on recursion for escape routes.