added loop to re-shift after combining - (passes all tests)