Now the code read array of numbered sides Ml in base 1. So in the code, every time it's called, Ml is subtracted by 1.