Fixed errors and added new variables to the Player class