Merge Window Done. ( Cost Fun. still need to fix)