On most motherboard you neither need to, nor want to mess with the master/slave jumpers to control the boot order.
Instead enter the BIOS/CMOS setup.
The setup varies from BIOS to BIOS, but there should be a boot priority settings somewhere.
Ensure that your optical drives have a higher priority than your hard drives.
Anytime you add a new drive you need to recheck the boot priority settings.