updated tilemap functionality

cleaned up tilemap