Comments added, board generating refactored.