public void checkImgDir(){
		if(xDirection > 0 && pDir != 3){
			pDir = 3;
		}
		if(xDirection < 0 && pDir != 2){
			pDir = 2;
		}
		if(yDirection < 0 && pDir != 1){
			pDir = 1;
		}
		if(yDirection > 0 && pDir != 0){
			pDir = 0;
		}
	}