comment added for act method in the player class