Added color for active point
Added intersection checking for 2D