renamed "swap_boards" for clarity

now: process_and_swap_boards
commented "main" with description of program
reordered and cleaned up include statements
stripped trailing whitespace