Added Player Class and refactored code

Wrote and implemented a player class