refactoring, Vertices have a select method, called when they are clicked