Add encapsulation to PlayerAvatar class