Added quadtree for grid

But dose not work yet