Update RouteGenerator.java

Added removal of direction backwards