Fixed a bug in the way actions are given to players, and made the way actions are printed smarter.