Adding some naive collision detection. This is very buggy. We need to
implement resting. Trying to do this with isResting boolean.