Fixed general issues, added select mode, ConnectMode draws 4_dots+3_lines correctly.

processCursor still needs some work.  
Need to assign iterators in the correct place.
        vector<pair<double, double>>::iterator cur;
	vector<Location>::iterator next_dot;
other stuff i'm too tired to write, we will talk about it in the meeting.