Indexing the data file and using cumulative score to pre fill the board