Undo feature added. Checkmate method started.

undo lets the user take back the last 2 moves. the first being the opponents move and second being their previously entered move.