Move struct defns to header.
Add shift_board_threaded function.
Call {check,shift}_board_threaded from main.