adding update method to Player