Andy Cook scores a stoppage-time winner for Grimsby as they beat Oldham 3-2 in the second round of the FA Cup.