Pseudocoding out the code for following a path