added optimization to our early stage move elimination algorithm