The Co-Evolution of Cooperation and Defection Under Local Interaction and Endogenous Network Formation