If guy sperm picks gender.......??⁉️⁉️

So I was reading Kim Kardashian’s surrogate story and they are having a boy. (They had 1 make embryo left? )My question is I though male sperm picked gender? How can they tell if it’s a boy or girl?