added option to print a list of moves