Functioning version of move_set_pk (still some bugs left)