made fitVal() function

fitVal() shall return the correct fitness value including the capacity
consideration