New guy here

So I just bought my 5 year old son a 2002 ds 90. He feel in love with it and is a real natural. After a few times out started to notice once the machine got warmed up it would loose its power and then eventually shut right down. After sometime it would fire back up and then do the same. Had rings and head gasket done but the problem is still there. I’m stumped