Breaking the loop and triggering the next loop - BuildShip