Server uses setters and getters to access id and targetPlayer attributes of the Player class