remove logging stmnts
refactor out reset into a func
added undoLastSegment
added undo button
bind undo button to function
use anonymous function in forEach incase we need to do more stuff here later
added TODO
remove extra call to beginPath()