Sorting at beginning of game