Still adding in collision detection

Added helper code to aid in collision detection.  It consumes more
memory, but it makes it easier to write the code that actually checks
the collisions.