I assume by "X" you mean "Ecstasy". As you may or may not know "X" plays major havoc on your brain neurons that use serotonin. X causes the excessive release of serotonin in your brain that plays an important role in regulating mood, aggression, sexual activity, sleep, and sensitivity to pain.
This can produce confusion, depression, sleep problems, drug craving, and severe anxiety.