You are given a M x M grid (7 <= M <= 1000) where every cell can either be occupied or is inaccessible. You are also given the locations of several starting points whe