pass referance of the player object instead of the copy of player object.