Got lines drawing but crashes most of the time on startup