Player class -> added encapsulation and validation to name and attempts fields.