Updated value/cost. need to double check files.
max and min switched.