Added logic to placing ships

Done