check path orientation when exploring on the left

Link: https://github.com/sebhtml/ray/issues/188
Signed-off-by: Sébastien Boisvert <sebastien.boisvert.3@ulaval.ca>