Use helper method in order to make code cleaner
Base code that will help show the use of priority queues in collision
detections