164165166167168169170171172173174175176177178179180181182183184185186187188189190191
switch (teamJ1) { case 0: race1 = new Elf(); break; case 1: race1 = new Human(); break; case 2: race1 = new Undead(); break; case 3: race1 = new Orc(); break; default: System.err.println("Error choosing race from Player 1"); System.exit(1); } switch (teamJ2) { case 0: race2 = new Elf(); break; case 1: race2 = new Human(); break; case 2: race2 = new Undead(); break; case 3: