public void render()
	{	
		int i, j, k;
		for (j = 0; j < MAPHEIGHT; ++j)
			for (i = 0; i < MAPWIDTH; ++i)
				if (MainFrame[i][j] == true)
				{
					// render only the frames that are within the radius of the MainFrame
					//  all other frames remain un-drawn
					FrameMatrix[i][j].draw(xRef + (i * SCREENWIDTH), yRef + (j * SCREENHEIGHT));
					
					if (TERRAINBOXES)
					{
						for (k = 0; k < map.blockDepth(); ++k)
							BlockArtist.draw(map.block(i, j, k));
					}
					MainFrame[i][j] = false;
				}
						
		if (HITBOXES)
		{
			BlockArtist.draw(rChar.getBox());
		}
		
		Character.draw(rChar.getX(), rChar.getY());
		//Character.draw(xChar, yChar);
	}