fixing an infintie loop bug

modified:   src/environment/Map.java