Implementation of collision