fixing the distance bug

modified:   src/environment/blocks/Block.java
modified:   src/environment/room/Room.java