first attempt at making unit collision.