AFL, players agree to pay deal in shutdown