Added some code for QuadTrees, fps and state changes showed in the window title