added player-model methods to main.js