public static void drawDwarf(Graphics graphicsObject, int xCoordinate, int yCoordinate, int width, int height, Dwarf dwarf){
		
		int facing = dwarf.getFacingDirection();
		Image drawImage;
		switch(facing){
		case 8:
			if(dwarfBack == null){//if its null lets load the image
				dwarfBack = new ImageIcon("Resources\\Entityimages\\dwarf\\DwarfSpritesBack.png").getImage();
			}
			drawImage = dwarfBack;
			break;
		case 2:
			if(dwarfFront == null){//if its null lets load the image
				dwarfFront = new ImageIcon("Resources\\Entityimages\\dwarf\\DwarfSpritesFront.png").getImage();
			}
			drawImage = dwarfFront;
			break;
		case 4:
			if(dwarfLeft == null){//if its null lets load the image
				dwarfLeft = new ImageIcon("Resources\\Entityimages\\dwarf\\DwarfSpritesLeft.png").getImage();
			}
			drawImage = dwarfLeft;
			break;
		case 6:
			if(dwarfRight == null){//if its null lets load the image
				dwarfRight = new ImageIcon("Resources\\Entityimages\\dwarf\\DwarfSpritesRight.png").getImage();
			}
			drawImage = dwarfRight;
			break;
		default:
			if(dwarfBack == null){//if its null lets load the image
				dwarfFront = new ImageIcon("Resources\\Entityimages\\dwarf\\DwarfSpritesFront.png").getImage();
			}
			drawImage = dwarfFront;
			break;
		}
		graphicsObject.drawImage(drawImage, xCoordinate, yCoordinate, width, height, null);
	}