refined playerlist and added readInFile method in main