Python logic for torpedo-salvo input seems to work now.