Adding collision algorithm