use selection sort in move ordering