You can have a structure that stores the state of the game. Then you can write it's contents to file, for saving the game. Then you just need searching and sorting. You could save players high scores, associated with the players initials, to file, and then your program can load them, sort them by score, and search you can display individuals high score by searching based on the players initials.