#1: a rudimentary collision detection