added more checks when adding ships