moved request for player into function call