Created class for player action