neighbors should not try points outside the map