/*
 * Singleton class representing the Brackets of the tournament, with getters for size, number and brackets
 */
public class Brackets {
	private Brackets(){}
	private static Bracket[] brackets;
	private static int bSize;
	public static void setBrackets(int num, int size) {
		bSize = size;
		brackets = new Bracket[num];
		for(int i = 0; i < num; i++) brackets[i] = new Bracket(size,""+(i+1));
	}
	public static Bracket getBracket(int num) {
		if(num>=brackets.length) return null;
		return brackets[num];
	}
	public static int getNum() {
		return brackets.length;
	}
	public static int getSize(){
		return bSize;
	}
	
}

@@ -500,24 +500,89 @@
 ts%5Bnum%5D;%0A%09%7D%0A
+%09public static Bracket%5B%5D getAllBrackets()%7B%0A%09%09return brackets;%0A%09%7D%0A
 %09public stat
@@ -678,11 +678,141 @@
 ze;%0A%09%7D%0A%09
+public static int indexOf(Bracket bracket)%7B%0A%09%09for(int i=0;i%3CbSize;i++)%0A%09%09%09if(brackets%5Bi%5D == bracket)%0A%09%09%09%09return i;%0A%09%09return -1;%0A%09%7D
 %0A%7D%0A

Update Brackets.java