Update Position.java

changes to if condition that throws an exception