Aberdeen boss Jim Goodwin believes Dundee's first goal should not have counted due to a foul in the build-up by Charlie Adam.