Got a working gale-shapley version, with the minor exception that it loops infinitly