public void sunMoonSwapper()
	{ // either the sun or moon will be drawn 
		
		if(startApplet == false) // if we're in the play mode AKA. the applet has not just been started 
		{
			if(sun_moon == 1) // draw moon
			{
				filter(INVERT); // invert background colours to simulate night
				sunMoon.drawMoon();
				daytime = false; // it is now night
				
				for (int i = 0; i < starAmount; i ++) // and display star fractals via factory method
				{
					StarHour currentStar = (StarHour) starhour_arraylist.get(i);
					currentStar.update();
					currentStar.drawMe();			
				}
			}
			else // draw sun
			{
				sunMoon.draw(); 
				daytime = true; // it is daytime
			}
		}
				
		if(sunMoon.objectCollision(head) && collisionPotential == 0) 
		{ // when the avatar collides with the sun or moon AND it has the potential to collided,...
			
			collisionPotential++; // ...turn off its potential to collide to stop it from continuously looping... 
			
			if(daytime) // ... and if it is daytime,
			{	
				sun_moon = 1; // draw the moon to switch to night time
			}
			else // ... and if it is night time,
			{	
				sun_moon = 0; // draw the sun to switch to daytime
			}
		}
		else if(sunMoon.objectCollision(head) == false) // reset its potential to collide if it was previously off 
		{
			collisionPotential = 0;
		}
	}