public void move(){   //move function, when uses keyboard to control
		
		if(ifLeft == true && ifPu == false){
			moveLeft();
		}
		if(ifRight == true && ifPu == false){
			moveRight();
		}
		
		x += dx;
		if(ifJump == true){
			currentSpeed += 0.2;
			y += currentSpeed;
		}
		if(y == 500){   //on ground
			ifJump = false;
		}
		if(x < 410 || x>700){
			x-=dx;
		}
	}