Added swap functionality. genmove will now consider swapping on second move. Added swap command to manually swap at any time.
Fixed bug with undo and swap command interaction.