Update Player.java

Fixed a bug