Refactor the Board class.