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

  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)


    board = header <> top <> middle <> bottom
    IO.write(device, board)
  end

  defp draw_header(size) do
