refactring BoardWritor.