updated Player.java