I think what happened here is that the player has 29 energy. Playing the X card at 29 while keeping it in your hand makes your remaining energy 0.