1. Use an "if-then" block to make the sprite stamp only when the mouse is clicked.
  2. Make the screen clear when the code is started.
  3. Add a "when green flag clicked" block to the code.

Heads up! You need to run your program in full screen mode for this code to work correctly. Make sure you click the full screen button to test your program.