implemented threads, made search faster by including guess