add a list of valid coasts to ship definition in JSON.
fix endless loop in error-line counting.