working version with some extra name input score saving io