Fixing bug #4 and #19, new function check_collision

Hi Wijnand,

I had some trouble when using the in_network function. Also I noticed the two tickets about this bug.
So I had a closer look onto the problem and I guess I fixed it with the new function check_collision very well.

Check it out. :)

Cheers,
Florian