 
     board = header <> top <> middle <> bottom
     IO.write(device, board)
-  end
-
-  def size_of(board) do
-    border = 2
-    board
-    |> size_of_raw
-    |> Kernel.'-'(border)
-  end
-
-  defp size_of_raw(board) do
-    board
-    |> length
-    |> :math.sqrt
-    |> round
   end
 
   defp draw_header(size) do

  end

  defp draw_all_rows(board) do
    size = size_of_raw(board)
    grid_line = draw_grid_line(size, :middle)
    rows = for row <- 0..size-1, do: draw_row(board, row)
    rows |> Enum.join(grid_line)


  defp draw_row(board, row) do
    first_row = 0
    last_row = size(board) - 1
    label =
      case row do
        ^first_row -> "  "
