Quadtree Python Code For Snake Games