public float getGroundPipesPosistion (int pipeNumber, boolean xPos) {
		if(pipeNumber <= numPipes) {
			if(xPos)
				return pipes[pipeNumber].getPosition().x;
			else
				return pipes[pipeNumber].getPosition().y;
		}
		System.err.println("Error: wrong pipe requested.");
		return -1;
	}