getting a segmentation fault in findHighScore function