Added collide method to entity.