Added and tested QuadTree for UI stuff.
More changes