Began work on code for repairing ships