Undo Button

Hello! I am making a game where you can place blocks and I would like to have an undo button to delete the last placed block! How do I do this?



My code is here:
Please remove .LOG extension from the code








Undo Button
 
 
Q