Added update method to PlayerModel.java