Sometimes going across would put is one active range away from being in-bounds, so check the two neighboring ranges too.