Update Direction.java

some method changes