Thank you so much!
Yeah, the game is pretty janky and buggy. It is my first ever game and the fact Trevors ai works at all was a stroke of luck.