create a class for player