updated quad tree code, basic collision detection code