public void jump()
{

	if (jumpcounter == 22) {
		jumping = 2;
		//do nothing
	} else if (jumping == 1) {
		jumpcounter+=2;
		y -= jumpcounter;		
	}

	if (jumping == 2)
		jumpcounter -= 2;//dy of fall == 5

	if (jumpcounter <= 0)
		jumping = 0;

}