public void move(int dir) {
		direction = dir;
		setImage(dir);
		if (dir == def.Frame.UP) {
			GoingUp = true;
			GoingDown = false;
			beStoped();
			if (canMoveUp) {
				dy = -def.Frame.SPEED;
			}

		}
		if (dir == def.Frame.DOWN) {
			GoingDown = true;
			GoingUp = false;
			beStoped();
			if (canMoveDown) {
				dy = def.Frame.SPEED;
			}
		}
		if (dir == def.Frame.LEFT) {
			GoingLeft = true;
			GoingRight = false;
			beStoped();
			if (canMoveLeft) {
				dx = -def.Frame.SPEED;
			}

		}
		if (dir == def.Frame.RIGHT) {
			GoingRight = true;
			GoingLeft = false;
			beStoped();
			if (canMoveRight) {
				dx = def.Frame.SPEED;
			}
		}
		if (dir == def.Frame.STILL) {
			dx = 0;
			dy = 0;
			canMoveLeft = true;
			canMoveRight = true;
			canMoveUp = true;
			canMoveDown = true;
		}
	}