public static void GameOver(Student player, Teacher teacher, int battles) { System.out.println("The classwork was overwhelming! Beaten by " + teacher.getName()); System.out.println("Winner info:"); System.out.println("Name: " + teacher.getName()); System.out.println("Strength: " + teacher.getStrength()); System.out.println("Hitpoints: " + teacher.getHP()); teacher.showAbilities(); System.out.println(); System.out.println("Loser info:"); System.out.println("Name: " + player.getName()); System.out.println("Strength: " + player.getStrength()); System.out.println("Hitpoints: " + player.getHP()); System.out.println("Classes attended: " + battles); player.showPlayerInventory(false); System.exit(0); }