private void movePipes() {		
		for(int i = 0; i < pipes.length; i++) {
			x = pipes[i].getPosition().x;
			y = pipes[i].getPosition().y;
			if(x > -1.47f) // pipes moving left
				x-=.008f; // speed of incoming pipes
			else { // pipes looping right
				if(i % 2 == 0) // top pipe
					y = MathUtils.random(1.8f, .85f);
				else // bottom pipe
					y = pipes[i-1].getPosition().y - 2.2f;
				x+=2.7f; // distance between pair of pipes
			}
			pipes[i].setTransform(x, y, pipes[i].getAngle());
		}		
	}