updated application to use callback to update the status of players