void FlipPlayer()
{
facingRight = !facingRight;
//make the animators bool the same as the players
anim.SetBool("FacingRight", facingRight);
/*
Vector3 theScale = transform.localScale;
theScale.x *= -1;
transform.localScale = theScale;
*/
}