added class Player, write score in file