Added basic naive collision detection

Added the basic method (naive) for detecting collision.