Refactoring Board to reduce duplicate code.