Effect of leg length on natural selection