search and sort in 2nd version of game