added update methods for entity and player