Working multithreading,
Now to fix the access violations with mutexes