Implements adding chosen, cheapest node to closed nodes