extract Maze and ToolBar class
reset selected point when releasing mouse