First try at collision detection