89 supra TS6M problems staying running

Hi, I have a 1989 Supra TS6M with a 351 ford, I can start the boat and it runs great while i have a garden hose hooked up to it in my shop so i took it to the river and was boating and wakeboarding for about 20 minutes every thing was going good, the temp was good oil pressure was good then i went to put the boat in gear and it died. I had some trouble getting it started back up and once i did it didnt want to idle but i finally got it into gear and drove back to the dock and as soon as i let off the throttle it would die. After i would wait for a while and let the boat cool off the boat would start up and it would seem to run fine. im just confused why the boat would run great for a while then start acting up, i have played with the timing and carburator it has a new battery and it shows its charging while its running so im stuck any help or ideas would be great.