Added "pause"  thread code

-Added pause event in thread class
-The client is now able to stop sending screenshot request on demand
-Fixed very annoying warning in QuadTree class