Added conversion of Kifu object to SGF

Implemented by function Kifu.prototype.toSgf()
SGF conversion fix