public void manageCollisions()
	{
		if(pairs.isEmpty())
		{
			if(pixelPerfect)
			{
				this.checkPixelPerfectCollisions(room.getSprites(), room.getSprites());
			}
			else
			{
				this.checkBoundingBoxCollisions(room.getSprites(), room.getSprites());
			}
		}
		else
		{
			if(pixelPerfect)
			{
				for(GroupPair p: pairs)
				{
					this.checkPixelPerfectCollisions(p.a.getGroup(), p.b.getGroup());
				}
			}
			else
			{
				for(GroupPair p: pairs)
				{
					this.checkBoundingBoxCollisions(p.a.getGroup(), p.b.getGroup());
				}
			}
		}
	}