public void PlayerAttack(Fighter attacker, Fighter defender){
		int damage;
		if(!attacker.inAir()){ //calculating whether or not damage is done.
			if((attacker.getX()+attacker.getAttack(0).getRange() >= defender.getX()-defender.getWidth())
					&&(attacker.getY()<defender.getY()+defender.getHeight())) 
				damage=attacker.getAttack(0).getDamage();
			else
				damage=0;
		}
		else{ //exact same as first but for in air basic attack
			if((attacker.getX()+attacker.getAttack(1).getRange() >= defender.getX()-defender.getWidth())
					&&(attacker.getY()<defender.getY()+defender.getHeight())) 
				damage=attacker.getAttack(1).getDamage();
			else
				damage=0;
		}
		defender.hurt(damage);
		
	}