buggy collision detection working