private Block[][] generateMap()
	
	{
		for(int i = 0; i < width; i++)
		{
			for(int j = 0; j < height; j++)
			{
				//goes through the map, generating a layer of air, layer of dirt, and then a mixed layer of stone 1 and stone 2
				if(j < 6)
				{
					theMap[i][j] = new Block(0);

				}
				else if(j >= 6 && j <= 8)
				{
					theMap[i][j] = new Block(1);
				}
				else
				{
					Random random = new Random();
					theMap[i][j] = new Block(random.nextInt(2) + 2);
				}
			}
		}	
		return theMap;
	}