The linked list used for sorting moves based on mobility has been re-engineered by
putting an head and tail elements at the two ends.