Sorry the kid died but that sounds like an advance for the gene pool.
I did a lot of really stupid things as a kid (a few as an adult) but never played ‘chicken’ with a train.
Lost a friend at Ft. Benning. He wanted to pick up ‘duds’ on the mortar range. “Bad idea,” I thought. Couldn’t talk him out of it.
Too bad for his family and friends, losing him because he wanted to impress his friends.