Explained functionality of commented code in Player.java