I started making this at school on a raspberry pi and it did not work...The pick random place did not work then i figured out how to do it using the scratch code club ghost hunters. Then my teacher helped. Then i debugged it at home at here it is!
' Credit to@Badger_123