I've migrated the board initilization to its own function, and have moved the rest of the main() contents to a new function--findMaxKnights.