distance = distance - direction*8
