wip timer thread
wip loop main thre
Set dummy main loop

Prevents Emscripten from unloading Stockfish when main function ends.
JavaScript interface relies on callbacks, not traditional main loop,
and we want to keep things loaded to handle events correctly.
fu main loop
REMOVE disable loops?
wip uci input
Print debug output to std::cout only

Don't put it to sync_cout which is now reserved for API output.
Revert "REMOVE disable loops?"

This reverts commit 88f6d5506eb919899157b4ffeee578cadea6a7d5.
REMOVE debug current pos
REMOVE? emscripten.h everywhere
wip

WARN: emscripten.h added, too late?
fix waiters
wip