refactored collision detection for additional accuracy on circular object