Refactoring for shouldMoveShipFromInput test