added resources

added exit & addItem to player.js
added resources.js