add bounds checking for number of boats, distance fields.