Catapult and loading arms code