add extraPeople variable

use absolute value of difference between maxCapacity and numberOfPeople