Basic collision detection
Added collision detection utility