public void tick()
	{
		width = sprt.getWidth(null);
		height = sprt.getHeight(null);
		if(dead) deathAni();
		chgDir();
		move();
		
		if(dir == 0 || dir == 1){
			x -= SPEED;
			if(x <= 10){
				x += x;
				dir = 2;
			}
		}
		
		if(dir == 2 || dir == 3){
			x += SPEED;
			if(x >= 250){
				dir = 0;
			}
		}
		
		tickCount++;
	}