Add collision detection and reset in case of collision