public void sprintChecks(){
		   if(HUD.sprint == 2){
			   //if not moving but pressing sprint refill stamina
			   if(xDirection == 0 && yDirection == 0){   
				   if(HUD.sprintTime < 500){
					   //while the sprint time is less than 500 add one
					   HUD.sprintTime += 1;
				   }else if(HUD.sprintTime > 500){
					   //if the sprint time is over 500 stop it at 500
					   HUD.sprintTime = 500;
				   }
			   }else{
				   //if moving remove one from sprint time
				   HUD.sprintTime -= 1;
			   }
			   //if sprint time runs out then stop sprint and reset cool down time
			   if(HUD.sprintTime <= 0){
				   HUD.sprint = 1;
				   HUD.sprintCoolDown = 250;
			   }
		   }else{
			   //if you aren't sprinting and there is more cool down time then add some sprint time and take away cool down time
			   if(HUD.sprintCoolDown > 0){
				   HUD.sprintCoolDown -= 1;
				   HUD.sprintTime = -2*HUD.sprintCoolDown+500;
			   }else{
				   //add some if you aren't sprinting and your sprint meter isn't full
				   if(HUD.sprintTime < 500){
					   HUD.sprintTime += 1;
				   }else if(HUD.sprintTime > 500){
					   //if its more than 500 then set it to 500
					   HUD.sprintTime = 500;
				   }
			   }
		   }
	   }