Implemented A* algorithm for finding path to master, used to insure squares stay together. Connections still seem a bit wonky.