Remove unused variable searchMoves
Implement semaphore
Fix bestmove output
Fix pondering