working on breaking out chat. getting weird error.

Uncaught TypeError: Object [object Object] has no method 'setPlayer'