Refactoring continued. Select and deselect function for points works properly now.

Next step: Drag and drop of points!