public ArrayList<GameObject> OrganizeForDrawing(ArrayList<GameObject> AL_messy)
	{
		//Creating the variables
		ArrayList<GameObject> AL_organized = new ArrayList<GameObject>();
		int numLowest = Integer.MAX_VALUE;
		int numChecksNeeded = AL_messy.size();
		int numInArray = 0;
		
		//Organizing the array list
		if (AL_messy.size() > 0)
		{
			for (int num1 = 0; num1 < numChecksNeeded; num1++)
			{
				//FOR loop for identifying lowest depth
				for (int num2 = 0; num2 < AL_messy.size(); num2++)
				{
					if (numLowest > AL_messy.get(num2).intDepth)
					{
						numLowest = AL_messy.get(num2).intDepth;
						numInArray = num2;
					}
				}
				
				//Adding and removing the game object
				AL_organized.add(AL_messy.get(numInArray));
				AL_messy.remove(numInArray);
				
				//Resetting the important variables
				numLowest = Integer.MAX_VALUE;
				numInArray = 0;
			}
		}
		
		//Returning the correct array
		return AL_organized;
	}