public int calcDamagePlayer(Player thisPlayer, Monster thisMonster)
	{
		int weaponPower =0; //holder for the weapons power
		int minPower =0;//holds the weapons minimum damage
		int maxPower =0; //holds the difference of the max and min damage
		for(int i=0; i<(thisPlayer.held).length; i++)
		//loops through what the player is holding.
		{
			if(thisPlayer.held[i]==null)
				//if the player is not holding a weapon 
				//in that hand then adds nothing
				totalDamage += 0;
			else
			{
				minPower = thisPlayer.held[i].damageRange[0];
				//gets the minimum damage the weapon can do
				maxPower = thisPlayer.held[i].damageRange[1] - minPower;
				weaponPower = (int)(minPower+(Math.random()*(maxPower+1)));
				//calculates weapon's power
				totalDamage += weaponPower;	
				//adds the weapons power to the totaldamage.
			}	
		}
		totalDamage += thisPlayer.offense;
		//adds the player's offense to totalDamage
		totalDamage -= thisMonster.defense;
		//subtracts the monster's defense points from totalDamage
		if(totalDamage <0)
		//if totaldamage is less than 0 then totaldamage is zero
			totalDamage =0;
		return totalDamage;
		//returns the total damage the player deals to the monster
	}
	public int calcDamageMonster(Monster thisMonster, Player thisPlayer)
	{
		totalDamage = thisMonster.offense;//totaldamage is the monster's offense points
		totalDamage -= thisPlayer.defense;//subtracts the players defense points from totalDamage
		if(totalDamage<0)
			//if totalDamage is less than 0, then totalDamage becomes 0
			totalDamage =0;
		return totalDamage;
		//returns the total damage done to the player by the monster
	}
	
}