The less shots you need, the more stars you will get.
The blue gauge on the right side of the screen indicates your current star rating.

Take your time. All that counts is your total number of moves.

Left mouse button: Fire stone
Right mouse button: Switch stone

Choose "Help" in the Pause menu to access this Help menu again.