       |> String.rstrip
       |> String.to_integer
     catch
-      :error, :badarg -> {:error, :badarg}
+      :error, :badarg -> {:error, :invalid_coord}
     else
       row -> parse_coord(pid, {row, letter})
     end

    if Grid.valid_coord?(grid, {row, col}) do
      {:ok, {row, col}}
    else
      {:error, :coord_off_board}
    end
  end


      end)

    if any_errors? do
      {:error, :invalid_coord}
    else
      parsed_coords
      |> Keyword.values
