Player class modified