Update main.cpp

Using QThreads as a solution (temporarily?)