Fixed a bug in Player.java class