implement collision logic.
merge