started the logic for ships