info=Now, each ball is registered with a cell when it enters that cell, and unregistered when it leaves. It then checks for any other balls in its own cell or any of the surrounding 8 cells, and simply draws a line to any found. There's still a lot of optimizing to do here, as you'll still have double checking going on. i.e. ballA will check ballB, ballB will check ballA. And there is no actual distance checking going on yet, just the fact that they are in adjacent cells.