pulled player out into coffeescript module