Intersection method for particle

Added a line class to calculate if rectangles are touching.