changed to coffeescript. Added player resources