your analysis about ending lengths is correct, and you are in a winnable state still
Got it! Thank you for the hint