ArrayList<BattleResults> results = new ArrayList<BattleResults>();
for (int i = 0; i < contestants.size(); i++) {
results.add(null);
}
for (int rank = 0; rank < contestants.size(); rank++) {
ContestantPeer contestant = contestants.get(rank);
contestant.getStatistics().setRank(rank + 1);
BattleResults battleResults = contestant.getStatistics().getFinalResults();
RobotSpecification robotSpec = null;
if (contestant instanceof RobotPeer) {
robotSpec = ((RobotPeer) contestant).getRobotSpecification();
} else if (contestant instanceof TeamPeer) {