In my opinion, you could have around 18 movement points in reserve before the last move.
Is this before opening the cube or when you approach the sign and the game ends?
Standing in front of the sign and before taking the last step, I have 4 movement points left:o
If it's after opening the cube, then 22:o
P.S. Tell me, where did you buy the potions:D.