public void setDirectionAnimation(double deg){
			if(deg > 337.5){
				player.setAnimation("N");
			} else if (deg > 292.5){
				player.setAnimation("NW");
			} else if (deg > 247.5){
				player.setAnimation("W");
			} else if (deg > 202.5){
				player.setAnimation("SW");
			} else if (deg > 157.5){
				player.setAnimation("S");
			} else if (deg > 112.5){
				player.setAnimation("SE");
			} else if (deg > 67.5){
				player.setAnimation("E");
			} else if (deg > 22.5){
				player.setAnimation("NE");
			}
		}