I checked the UCI specification here and I don't see a way to undo a move. I'm using stockfish, is there a way to do this?
For example, how would I accomplish the following:
position startpos moves e4c5
undo
With the intent of the above "undo" to result in a position of e4