I'm honestly not that strong at programming either, but would be willing to give it a look too if you end up stumped. You'll probably need to add in some code to check the coordinates of any players before spawning, to see if they're within a certain distance, and then I guess just keep retrying the spawn until it works. Also gave your tomb torch trouble game a try and gotta say I love the 2.5D aesthetic!