Change syntax to OO.plugin
Surround player creation within OO.ready
Change 'var x' declarations to 'this.x'
Change syntax to OO.plugin
Surround player creation in OO.ready call