Update RouteGenerator.java

Removed going backwards