override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "showDetails" {
if let destination = segue.destination as? TheChoiseOfShipTableViewController,
let cell = sender as? UITableViewCell,
let indexPath = tableView.indexPath(for: cell) {
destination.ships = self.ships[indexPath.row]
}
}
}