Converted js code to object-oriented javascript
Separated js 'objects' into separate player and game files