infinite graph
improving mouse click function
seperated mouse from base class