public static Spell selectSpell(Mage player) {
		
		/*
		 * Initialisation stage
		 */
		Spell[] spells = player.getSpells(); //The array of spells
		String[] names = new String[spells.length]; //The array with the names of the spells
		int[] tabs = new int[names.length]; //An array of the amount of tabs needed for each name of the spells
		int maxLength = 0; //Largest length of characters in the names
		
		for (int i = 0; i < spells.length; i++) { //Assign the names of the spells to the array of names
			if (spells[i] != null) {
				names[i] = spells[i].getName();
			}
		}
		
		for (int i = 0; i < names.length; i++) { //Get the amount of tabs in each name
			if (names[i] != null) {
				tabs[i] = (names[i].length() / 8) + 1;
			}
		}
		
		for (int i = 0; i < tabs.length; i++) { //Get the largest amount of tabs in the names
			if (tabs[i] > maxLength) {
				maxLength = tabs[i];
			}
		}
		
		for (int i = 0; i < tabs.length; i++) { //Get the actual amount of tabs to print
			tabs[i] = (maxLength - tabs[i]) + 1;
		}
		
		/*
		 * Printing stage
		 */
		
		System.out.print("Name");
		printTabs(maxLength);
		System.out.println("ID\tDamage\tMana Cost");
		
		
		for (int i = 0; i < spells.length; i++) {
			if (spells[i] != null) {
				System.out.print(names[i]);
				printTabs(tabs[i]);
				System.out.println(i + "\t" + spells[i].getDmg() + "\t" + spells[i].getCost());
			}
		}
		
		return new Spell("Hey");
	}