document code and send initial board as parameter in Main.