Move ship logic to ship class