thinking timer + fixed bug in moves generation