Update hasItem method in Player.java