Improved the quad tree test and the quad tree itself, it is still not completely correct