public Graphics drawBox(Box tempBox ,Graphics g, boolean cursors)//draw the square for normal squares
	{
		int [] topLeft = tempBox.getTopLeft();
		int [] topRight = tempBox.getTopRight();
		int [] bottomLeft = tempBox.getBottomLeft();
		int [] bottomRight = tempBox.getBottomRight();
		g.setColor(Color.black);
		
		if (cursors==false)
		{
			g.drawLine(topLeft[0],topLeft[1],topRight[0],topRight[1]);
			g.drawLine(bottomLeft[0],bottomLeft[1],topLeft[0],topLeft[1]);
		
			if (tempBox.getBoxNumber()%7!=0)//if the box isn't one in the last column
			{
				g.drawLine(topRight[0],topRight[1],bottomRight[0],bottomRight[1]);//draw line
				
			}
			if (tempBox.getBoxNumber()<35)//if the box isn't in the last row
			{
				g.drawLine(bottomRight[0],bottomRight[1],bottomLeft[0],bottomLeft[1]);//drawline
			}
		}
		
		else
		{   
			g.setColor(Color.red);
			g.fillRect(topLeft[0],topLeft[1]-1,each_x,4);
			g.fillRect(topRight[0]-1,topRight[1]-1,4,each_y+3);
			g.fillRect(bottomLeft[0],bottomLeft[1]-1,each_x,4);
			g.fillRect(topLeft[0],topLeft[1]-1,4,each_y);
		}
		
		g.setColor(Color.black);
		
		try{
		Day d = tempBox.getDayStored();
		ArrayList <Event> events = d.getEvents();
		g.setFont(EVENT_FONT);
		
		for (int i = 0;i<events.size();i++)//goes through the list of events and prints the name of the events 
		{
			Event e = events.get(i);
			String name = e.getName();
			int diff = topRight[0]-topLeft[0];//number of pixels between the two sides of the square
			int maxChar = (diff/10) - 4;//maximum number of characters
			String s = name;;
			if(name.length()>maxChar)
			{
				s = name.substring(0,maxChar);
				s = s +"...";
			}
			g.drawString("- "+s, topLeft[0]+10,topLeft[1]+35+(20*i));
		}
		
		g.setFont(NORMAL_FONT);

		}
		catch (Exception E)
		{
			
		}
		
		return g;
	}