changed the way the Player class is used