Separated mouseListener from drawCanvas