public void moveFrog(int direction){
		if(direction == 1){
			frogRectangle.y -= FROG_SPEED;
			leftHalf.y -= FROG_SPEED;
			rightHalf.y -= FROG_SPEED;
			backHalf.y -= FROG_SPEED;
			frontHalf.y -= FROG_SPEED;
		}else if(direction == 2 && frogRectangle.y + frogRectangle.height < FrogsterConstants.JPANEL_SIZE){
			frogRectangle.y += FROG_SPEED;	
			leftHalf.y += FROG_SPEED;
			rightHalf.y += FROG_SPEED;
			backHalf.y += FROG_SPEED;
			frontHalf.y += FROG_SPEED;
		}else if(direction == 3 && frogRectangle.x > 0){
			frogRectangle.x -= FROG_SPEED;
			leftHalf.x -= FROG_SPEED;
			rightHalf.x -= FROG_SPEED;
			backHalf.x -= FROG_SPEED;
			frontHalf.x -= FROG_SPEED;
		}else if(direction == 4 && frogRectangle.x + frogRectangle.width < FrogsterConstants.JPANEL_SIZE){
			frogRectangle.x += FROG_SPEED;
			leftHalf.x += FROG_SPEED;
			rightHalf.x += FROG_SPEED;
			backHalf.x += FROG_SPEED;
			frontHalf.x += FROG_SPEED;
		}
	}