Check for collisions among entities

Resolves #14