implemented ship behavior with dirty code