Implemented Singleton pattern for the Player object. Renamed some variables and refactored some code.