Check the code on how this works! Press the green flag to start, then press space when you want them to go back to their original positions.
Code by me, sprites by scratch, like and hearts by you!