The game is really good. I noticed that if you backtrack after a move, it resets the move counter to 0. Therefore it suffices to do that just before the end and automatically get 3 stars, whatever the target value is. Cheers!
Fixed. Thanks for reporting this!