sorta fixed the problem with drawing counterclockwise