Kaleidoscope ending explained: who killed Leo / Ray?

Kaleidoscope is a Netflix TV series with the episodes in random order: here is the ending explained, who killed Ray / Leo in the Pink episode?