Hi Kay, I've been there. What I did was to dig away the dirt next to the boards and place a black plastic liner next to the wood. Then, I replaced the dirt. Had no problems whatsoever. Most of the volatile chemicals are already gone, but for piece of minds sake, a plastic liner will do fine. 6 mil black or clear plastic will do well. Chances are, if the paint is peeling and not just "chalky" looking, the paint on the boards is latex based. With plastic as a barrier, you'll be fine. When I did this, the plastic lasted for as long as the boards did, and I suffered no (non gardening induced) brain damage.
Good luck and good gardening from us in Alaska...