Fixed a bug in the drawPath() function and updated touchDebug() to reflect the change.