Move Distance.java to the Logic package