public void move(int xa, int ya) {
		
		if(xa != 0 && ya != 0){
			if(diagonal<4){
				move(xa, 0);
				move(0, ya);
				diagonal++;
			}else{
				diagonal = 0;
			}
			return;
		}

		if (xa > 0)
			dir = 1;
		if (xa < 0)
			dir = 3;
		if (ya > 0)
			dir = 2;
		if (ya < 0)
			dir = 0;

		if (!collision(xa, ya)) {
			x += xa;
			y += ya;
		}

	}