Rooted!
Thanks @rowra for making me notice a typo in my script.
@MrR3boot, thank you for the box. I definitely learnt something useful here, and it was great fun!