Basic collision detection added.