The fast-running dog stabbed his head against the glass