Update TileMap.java

improved tile-blocking code