Added escape character detection
Added malformed file detection
Added Tests for sgf.go