Added dijkstra to check distance to blue base. Also added a function that places the red base as far as possible from blue base (distance calculated by connections you need to travel, not actual distance).