1. Make the baseball move towards home plate using the "repeat until," "move," and "touching edge" blocks.
  2. Point the baseball in a random direction using "point in direction" and "random" blocks.
  3. Start the baseball in the same position before each pitch using a "go to x y" block.
  4. Pitch 5 times using "repeat" and "wait."
  5. Make the baseball start moving when the green flag is clicked.