Added version of dealing with collision