Added the logic which applies the money to each goal. Does not yet take into account overriding percentages.