// Accepts a string such as "pe2-e4" and converts it to the Move struct. func stringToMove(s string) *engine.Move { var move engine.Move move.Begin = stringToSquare(s[1:3]) move.End = stringToSquare(s[4:]) move.Piece = s[0] return &move }