* Extracted the accelerometer-related logic and drawing into the ShipView instead of keeping it in the main layout