Final Code on Player.java