implementing collision system