added max distance to go into special tiles