adding player class and its validations