nicer formatting, and print only the best action from each iteration