Attempt #2 for 2D collision, using Python