added validation to board size