still crash but at least removed some global objects, and created separated files for Drawing Area and EdgeTracker classes