Turns out the problem was println! Statements. They work just fine in the test function’s thread, but put a printline function in the ai thread and it freezes. My engine no longer prints info as it searches, but it does now function and it can give the info for the last search.