Cleaning up player.js and modfying the join ack
Adding basic sync code