Octree wall collision & ball collision (some improvements)