added eventlistener to calculate total-cost of ships