Evolutionary dynamics of spatial games