transcribed some board code for pending_sets2