Added lighting function to the Player class