slightly faster with 8 direction search