Fixed bugs for reading from and writing to string

Known bugs: In some circumstances, generals can't hop backwards.