public void updateBoxes()
	{
		 int num = currentMonth.getFirstDay();
		 if (num ==0)
			 num=7;
		 
		 for (int i = 1;i<=currentMonth.getDaysInMonth();i++)
		 {
			 Box tempBox = boxes.get(i+num-1);
			 Day currentDay = currentMonth.getDays().get(i-1);
			 tempBox.setDayStored(currentDay);
			 tempBox.setMonthStored(currentMonth);
			 boxes.set(i+num-1, tempBox);
		 }
		 
		 Month previousMonth = currentYear.getMonths().get((CalendarFunctions.previousMonth(currentMonth.getNum())-1));
		 int k = previousMonth.getDaysInMonth()-num;
		 
		 for (int i = 0;i<num;i++)
		 {
			 Box tempBox = boxes.get(i);
			 Day currentDay = previousMonth.getDays().get(k);
			 k++;
			 tempBox.setDayStored(currentDay);
			 tempBox.setMonthStored(previousMonth);
			 boxes.set(i, tempBox);
		 }
		
		 
		 Month nextMonth = currentYear.getMonths().get((CalendarFunctions.nextMonth(currentMonth.getNum())-1));
		 int r = 1;
		 for (int i = currentMonth.getDaysInMonth()+num;i<boxes.size();i++)
		 {
			 Box tempBox = boxes.get(i);
			 Day currentDay = nextMonth.getDays().get(r-1);
			 r++;
			 tempBox.setDayStored(currentDay);
			 tempBox.setMonthStored(nextMonth);
			 boxes.set(i, tempBox);					 
		 }
		 
	}